import request from '@/utils/request'


// 查询充值赠送点数列表
export function listAllMoney(query) {
  return request({
    url: '/mahjong/money/listAllMoney/getall',
    method: 'get',
    params: query
  })
}
// 查询充值赠送点数列表
export function listMoney(query) {
  return request({
    url: '/mahjong/money/list',
    method: 'get',
    params: query
  })
}

// 查询充值赠送点数详细
export function getMoney(id) {
  return request({
    url: '/mahjong/money/' + id,
    method: 'get'
  })
}

// 新增充值赠送点数
export function addMoney(data) {
  return request({
    url: '/mahjong/money',
    method: 'post',
    data: data
  })
}

// 修改充值赠送点数
export function updateMoney(data) {
  return request({
    url: '/mahjong/money',
    method: 'put',
    data: data
  })
}

// 删除充值赠送点数
export function delMoney(id) {
  return request({
    url: '/mahjong/money/' + id,
    method: 'delete'
  })
}

// 导出充值赠送点数
export function exportMoney(query) {
  return request({
    url: '/mahjong/money/export',
    method: 'get',
    params: query
  })
}
